.class Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;
.super Landroid/widget/LinearLayout;
.source "CommonListDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/commonui/CommonListDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "CommonListItem"
.end annotation


# instance fields
.field private mIcon:Landroid/widget/ImageView;

.field private mTitle:Landroid/widget/TextView;

.field final synthetic this$0:Lcom/htc/android/footprints/commonui/CommonListDialog;


# direct methods
.method public constructor <init>(Lcom/htc/android/footprints/commonui/CommonListDialog;Landroid/content/Context;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
    .locals 8
    .parameter
    .parameter "context"
    .parameter "title"
    .parameter "icon"

    .prologue
    const/16 v3, 0x2d

    const/16 v7, 0x10

    const/16 v6, 0xa

    const/4 v5, -0x1

    const/4 v4, 0x0

    .line 120
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->this$0:Lcom/htc/android/footprints/commonui/CommonListDialog;

    .line 121
    invoke-direct {p0, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 122
    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->setOrientation(I)V

    .line 123
    invoke-virtual {p0, v7}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->setGravity(I)V

    .line 126
    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    .line 128
    if-eqz p4, :cond_0

    .line 129
    new-instance v2, Landroid/widget/ImageView;

    invoke-direct {v2, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mIcon:Landroid/widget/ImageView;

    .line 130
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mIcon:Landroid/widget/ImageView;

    invoke-virtual {v2, p4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 131
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mIcon:Landroid/widget/ImageView;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setMaxHeight(I)V

    .line 132
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mIcon:Landroid/widget/ImageView;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setMaxWidth(I)V

    .line 133
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v2, 0x32

    const/16 v3, 0x32

    invoke-direct {v0, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 135
    .local v0, iconParam:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mIcon:Landroid/widget/ImageView;

    invoke-virtual {p0, v2, v0}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 137
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    invoke-virtual {v2, v6, v6, v4, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 138
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 145
    .end local v0           #iconParam:Landroid/widget/LinearLayout$LayoutParams;
    .local v1, textParam:Landroid/widget/LinearLayout$LayoutParams;
    :goto_0
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    invoke-virtual {v2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 146
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    const/high16 v3, 0x4190

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextSize(F)V

    .line 148
    iput v7, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 149
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    invoke-virtual {p0, v2, v1}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 150
    return-void

    .line 141
    .end local v1           #textParam:Landroid/widget/LinearLayout$LayoutParams;
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    invoke-virtual {v2, v6, v4, v4, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 142
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v2, 0x23

    invoke-direct {v1, v5, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .restart local v1       #textParam:Landroid/widget/LinearLayout$LayoutParams;
    goto :goto_0
.end method


# virtual methods
.method public setTitel(Ljava/lang/String;)V
    .locals 1
    .parameter "title"

    .prologue
    .line 153
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;->mTitle:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 154
    return-void
.end method
